import { CDRoleSelect } from "../excel/CDRoleSelect";
/**
 * 扩展-角色选择
 */
export abstract class CERoleSelect {

    /**
     * 获取角色选择
     */
    public static getRoleSelect(): CDRoleSelect[] {
        return CDRoleSelect.datas.getValues();
    }

    /**
     * 获取角色选择
     */
    public static getRoleSelectByIndex(index: number): CDRoleSelect {
        return CDRoleSelect.getData(index);
    }
    /**
     * 获取第一个角色
     */
    public static getFirstRoleSelect(): CDRoleSelect {
        return this.getRoleSelect()[0];
    }
}